package com.ruoyi.settled.service.impl;

import com.ruoyi.settled.domain.InfluencerOrders;
import com.ruoyi.settled.mapper.InfluencerOrdersMapper;
import com.ruoyi.settled.service.IInfluencerOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 博主订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-10
 */
@Service
public class InfluencerOrdersServiceImpl implements IInfluencerOrdersService 
{
    @Autowired
    private InfluencerOrdersMapper influencerOrdersMapper;

    /**
     * 查询博主订单
     * 
     * @param orderCode 博主订单主键
     * @return 博主订单
     */
    @Override
    public InfluencerOrders selectInfluencerOrdersByOrderCode(String orderCode)
    {
        return influencerOrdersMapper.selectInfluencerOrdersByOrderCode(orderCode);
    }

    /**
     * 查询博主订单列表
     * 
     * @param influencerOrders 博主订单
     * @return 博主订单
     */
    @Override
    public List<InfluencerOrders> selectInfluencerOrdersList(InfluencerOrders influencerOrders)
    {
        return influencerOrdersMapper.selectInfluencerOrdersList(influencerOrders);
    }

    /**
     * 新增博主订单
     * 
     * @param influencerOrders 博主订单
     * @return 结果
     */
    @Override
    public int insertInfluencerOrders(InfluencerOrders influencerOrders)
    {
        return influencerOrdersMapper.insertInfluencerOrders(influencerOrders);
    }

    /**
     * 修改博主订单
     * 
     * @param influencerOrders 博主订单
     * @return 结果
     */
    @Override
    public int updateInfluencerOrders(InfluencerOrders influencerOrders)
    {
        return influencerOrdersMapper.updateInfluencerOrders(influencerOrders);
    }

    /**
     * 批量删除博主订单
     * 
     * @param orderCodes 需要删除的博主订单主键
     * @return 结果
     */
    @Override
    public int deleteInfluencerOrdersByOrderCodes(String[] orderCodes)
    {
        return influencerOrdersMapper.deleteInfluencerOrdersByOrderCodes(orderCodes);
    }

    /**
     * 删除博主订单信息
     * 
     * @param orderCode 博主订单主键
     * @return 结果
     */
    @Override
    public int deleteInfluencerOrdersByOrderCode(String orderCode)
    {
        return influencerOrdersMapper.deleteInfluencerOrdersByOrderCode(orderCode);
    }
}
